package org.dey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dey.entity.Result;
import org.dey.pojo.User;

import java.util.ArrayList;
import java.util.List;

/**
 * @author deyran
 * @classname
 * @see IService
 */
public interface UserService extends IService<User> {

    List<User> USER_LIST();

    /**
     * 登录
     * @param user
     * @return
     */
    Result<User> LOGIN(User user);

    /**
     * 注册
     * @param user
     * @return
     */
    int insertUser(User user);

    List<User> oneUser(Integer id, String username);

    User getUser(String username);

}
